/*
 * @Author: liujinjun681 liujinjun681@qq.com
 * @Date: 2022-06-27 10:46:56
 * @LastEditors: liujinjun681 liujinjun681@qq.com
 * @LastEditTime: 2022-11-10 15:33:06
 * @FilePath: \hd_ims_web\src\api\board\board.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import axios from '@/utils/request'
class customer {
  /**
   * @description:系列bom查询
   * @return {*}
   */
  list(params) {
    return axios.get('/customer/bom/form/list', { params })
  }
  /**
   * @description:月度计划查询
   * @return {*}
   */
  monthPlanlist(params) {
    return axios.get('/customer/monthPlan/list', { params })
  }
  /**
   * @description: 修改主表数据
   * @return {*}
   */
  save(data) {
    return axios.put('/customer/monthPlan', data)
  }
  /**
   * @description:下载系列bom模板
   * @return {*}
   */
  exportTemplate(data) {
    return axios.get('/customer/bom/exportTemplate', data)
  }
  /**
   * @description:下载月度计划模板
   * @return {*}
   */
  monthPlanExportTemplate(data) {
    return axios.get('/customer/monthPlan/exportTemplate', data)
  }
  /**
   * @description:下载导入物料比例模板
   * @return {*}
   */
  exportPlanRate(data) {
    return axios.get('/customer/monthPlan/exportPlanRate', data)
  }
  /**
   * @description:导入月度计划
   * @return {*}
   */
  monthPlanImport(data) {
    return axios.post('/customer/monthPlan/import', data)
  }
  /**
   * @description:预排生产保存
   * @return {*}
   */
  monthPlanPrePlan(data) {
    return axios.post('/customer/monthPlan/prePlan', data)
  }
  /**
   * @description:预排采购保存
   * @return {*}
   */
  monthPlanPrePurchase(data) {
    return axios.post('/customer/monthPlan/prePurchase', data)
  }
  monthPlanImportT3Plan(data) {
    return axios.post('/customer/monthPlan/importT3Plan', data)
  }
  monthPlanExport(params) {
    return axios.get('/customer/monthPlan/export', { params })
  }
  exportPurChasing(params) {
    return axios.get('/customer/monthPlan/exportPurChasing', { params })
  }
  /**
   * @description:考勤管理-排版配置导入模板下载
   * @return {*}
   */
  scheduleExportTemplate(params) {
    return axios.get('/attendance/schedule/exportTemplate', { params })
  }

  /**
   * @description:考勤管理-排版配置主表查询
   * @return {*}
   */
  scheduleList(params) {
    return axios.get('/attendance/schedule/list', { params })
  }
}
export default new customer()
